package com.company.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.company.system.mapper.TableOplistMapper;
import com.company.system.domain.TableOplist;
import com.company.system.service.ITableOplistService;

/**
 * 操作员Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-07-07
 */
@Service
public class TableOplistServiceImpl implements ITableOplistService 
{
    @Autowired
    private TableOplistMapper tableOplistMapper;

    /**
     * 查询操作员
     * 
     * @param opid 操作员主键
     * @return 操作员
     */
    @Override
    public TableOplist selectTableOplistByOpid(Long opid)
    {
        return tableOplistMapper.selectTableOplistByOpid(opid);
    }

    /**
     * 查询操作员列表
     * 
     * @param tableOplist 操作员
     * @return 操作员
     */
    @Override
    public List<TableOplist> selectTableOplistList(TableOplist tableOplist)
    {
        return tableOplistMapper.selectTableOplistList(tableOplist);
    }

    /**
     * 新增操作员
     * 
     * @param tableOplist 操作员
     * @return 结果
     */
    @Override
    public int insertTableOplist(TableOplist tableOplist)
    {
        return tableOplistMapper.insertTableOplist(tableOplist);
    }

    /**
     * 修改操作员
     * 
     * @param tableOplist 操作员
     * @return 结果
     */
    @Override
    public int updateTableOplist(TableOplist tableOplist)
    {
        return tableOplistMapper.updateTableOplist(tableOplist);
    }

    /**
     * 批量删除操作员
     * 
     * @param opids 需要删除的操作员主键
     * @return 结果
     */
    @Override
    public int deleteTableOplistByOpids(Long[] opids)
    {
        return tableOplistMapper.deleteTableOplistByOpids(opids);
    }

    /**
     * 删除操作员信息
     * 
     * @param opid 操作员主键
     * @return 结果
     */
    @Override
    public int deleteTableOplistByOpid(Long opid)
    {
        return tableOplistMapper.deleteTableOplistByOpid(opid);
    }
}
